package routers

import (
	"github.com/gin-gonic/gin"
	"gvb-server/Middlewares"
	Api "gvb-server/api"
)

func (ApiRoute) SiteInfoRoute(r *gin.RouterGroup) { // 传组
	//ApiGroup2 := Api.GroupAPI.SettingApi.GetSiteInfo
	//r.GET("/siteInfo2", ApiGroup2)

	ApiGroup := Api.GroupAPI.SettingApi
	{
		r.GET("/siteInfo/:name", Middlewares.InitMiddleware, ApiGroup.GetSiteInfo) // 控制器中 使用 ShouldBindUri 获取 name，
		r.PUT("/siteInfo/:name", Middlewares.InitMiddleware, ApiGroup.SetSiteInfo)
	}
}
